package com.wangyb.multitenant.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租户模板菜单对象 mt_template_menu
 *
 * @author wangyb
 * @date 2021-06-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mt_template_menu")
public class MtTemplateMenu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 多租户模板id */
    @Excel(name = "多租户模板id")
    private Long templateId;

    /** 菜单id */
    @Excel(name = "菜单id")
    private Long menuId;

    public void setTemplateId(Long templateId)
    {
        this.templateId = templateId;
    }

    public Long getTemplateId()
    {
        return templateId;
    }
    public void setMenuId(Long menuId)
    {
        this.menuId = menuId;
    }

    public Long getMenuId()
    {
        return menuId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateId", getTemplateId())
            .append("menuId", getMenuId())
            .toString();
    }
}
